<?php

/*
 * PATHS
 */

define('INCLUDES_PATH' , __DIR__ . '/../includes');
define('LIB_PATH' , __DIR__ . '/../lib');
define('MODULES_PATH' , __DIR__ . '/../modules');
define('GRAPHICS_PATH' , __DIR__ . '/../graphics');
define('STYLES_PATH' , __DIR__ . '/../styles');
define('JSCRIPTS_PATH' , __DIR__ . '/../jscripts');
define('UPLOADS_PATH' , __DIR__ . '/../uploads');


/*
 * URLS
 */

define('HOST_URL' , 'http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']));
define('REQUEST_URI' , HOST_URL . $_SERVER['REQUEST_URI']);
define('SITE_URL' , HOST_URL . substr($_SERVER['SCRIPT_NAME'] , 0 , strrpos($_SERVER['SCRIPT_NAME'] , '/' , 0)));
define('GRAPHICS_URL' , SITE_URL . '/graphics');
define('STYLES_URL' , SITE_URL . '/styles');
define('JSCRIPTS_URL' , SITE_URL . '/jscripts');
define('UPLOADS_URL' , SITE_URL . '/uploads');


/*
 * EXTRAS
 */

define('SCRIPT_NAME' , basename(REQUEST_URI));

?>
